package com.wenjie.original.entity.vo.SysMenu;

import com.wenjie.original.entity.SysMenu;
import com.wenjie.original.entity.common.vo.IResVo;
import com.wenjie.original.entity.common.vo.ISelVo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;

public class SysMenuVo {

    @Data
    public static class SelVo extends SysMenu implements ISelVo<SysMenu>, Serializable {
        @ApiModelProperty("当前页")
        private Integer pn = 1;

        @ApiModelProperty("页数")
        private Integer ps = 10000;


        @Override
        @Size(min = 0, max = 100, message = "权限标识长度不能超过100个字符")
        public String getPerms() {
            return super.getPerms();
        }

    }

    @Data
    public static class ResVo extends SysMenu implements IResVo<SysMenu> {

    }


}
